home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 1996 September & October / Amiga-CD 1996 #9-10.iso / demos / storm-c / stormc / include / dos / dostags.h < prev    next >
C/C++ Source or Header  |  1994-03-15  |  5KB  |  139 lines

  1. #ifndef DOS_DOSTAGS_H
  2. #define DOS_DOSTAGS_H
  3. /*
  4. **
  5. **    $VER: dostags.h 36.11 (29.4.91)
  6. **    Includes Release 40.15
  7. **
  8. **    Tag definitions for all Dos routines using tags
  9. **
  10. **    (C) Copyright 1989-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. **
  13. */
  14.  
  15. #ifndef UTILITY_TAGITEM_H
  16. #include "utility/tagitem.h"
  17. #endif
  18.  
  19. /*****************************************************************************/
  20. /* definitions for the System() call */
  21.  
  22. #define SYS_Dummy    (TAG_USER + 32)
  23. #define    SYS_Input    (SYS_Dummy + 1)
  24.                 /* specifies the input filehandle  */
  25. #define    SYS_Output    (SYS_Dummy + 2)
  26.                 /* specifies the output filehandle */
  27. #define    SYS_Asynch    (SYS_Dummy + 3)
  28.                 /* run asynch, close input/output on exit(!) */
  29. #define    SYS_UserShell    (SYS_Dummy + 4)
  30.                 /* send to user shell instead of boot shell */
  31. #define    SYS_CustomShell    (SYS_Dummy + 5)
  32.                 /* send to a specific shell (data is name) */
  33. /*    SYS_Error, */
  34.  
  35.  
  36. /*****************************************************************************/
  37. /* definitions for the CreateNewProc() call */
  38. /* you MUST specify one of NP_Seglist or NP_Entry.  All else is optional. */
  39.  
  40. #define    NP_Dummy (TAG_USER + 1000)
  41. #define    NP_Seglist    (NP_Dummy + 1)
  42.                 /* seglist of code to run for the process  */
  43. #define    NP_FreeSeglist    (NP_Dummy + 2)
  44.                 /* free seglist on exit - only valid for   */
  45.                 /* for NP_Seglist.  Default is TRUE.       */
  46. #define    NP_Entry    (NP_Dummy + 3)
  47.                 /* entry point to run - mutually exclusive */
  48.                 /* with NP_Seglist! */
  49. #define    NP_Input    (NP_Dummy + 4)
  50.                 /* filehandle - default is Open("NIL:"...) */
  51. #define    NP_Output    (NP_Dummy + 5)
  52.                 /* filehandle - default is Open("NIL:"...) */
  53. #define    NP_CloseInput    (NP_Dummy + 6)
  54.                 /* close input filehandle on exit       */
  55.                 /* default TRUE                   */
  56. #define    NP_CloseOutput    (NP_Dummy + 7)
  57.                 /* close output filehandle on exit       */
  58.                 /* default TRUE                   */
  59. #define    NP_Error    (NP_Dummy + 8)
  60.                 /* filehandle - default is Open("NIL:"...) */
  61. #define    NP_CloseError    (NP_Dummy + 9)
  62.                 /* close error filehandle on exit       */
  63.                 /* default TRUE                   */
  64. #define    NP_CurrentDir    (NP_Dummy + 10)
  65.                 /* lock - default is parent's current dir  */
  66. #define    NP_StackSize    (NP_Dummy + 11)
  67.                 /* stacksize for process - default 4000    */
  68. #define    NP_Name        (NP_Dummy + 12)
  69.                 /* name for process - default "New Process"*/
  70. #define    NP_Priority    (NP_Dummy + 13)
  71.                 /* priority - default same as parent       */
  72. #define    NP_ConsoleTask    (NP_Dummy + 14)
  73.                 /* consoletask - default same as parent    */
  74. #define    NP_WindowPtr    (NP_Dummy + 15)
  75.                 /* window ptr - default is same as parent  */
  76. #define    NP_HomeDir    (NP_Dummy + 16)
  77.                 /* home directory - default curr home dir  */
  78. #define    NP_CopyVars    (NP_Dummy + 17)
  79.                 /* boolean to copy local vars-default TRUE */
  80. #define    NP_Cli        (NP_Dummy + 18)
  81.                 /* create cli structure - default FALSE    */
  82. #define    NP_Path        (NP_Dummy + 19)
  83.                 /* path - default is copy of parents path  */
  84.                 /* only valid if a cli process!       */
  85. #define    NP_CommandName    (NP_Dummy + 20)
  86.                 /* commandname - valid only for CLI       */
  87. #define    NP_Arguments    (NP_Dummy + 21)
  88. /* cstring of arguments - passed with str in a0, length in d0.    */
  89. /* (copied and freed on exit.)    Default is 0-length NULL ptr.    */
  90. /* NOTE: not operational until V37 - see BIX/TechNotes for    */
  91. /* more info/workaround.  In V36, the registers were random.    */
  92. /* You must NEVER use NP_Arguments with a NP_Input of NULL.    */
  93.  
  94. /* FIX! should this be only for cli's? */
  95. #define    NP_NotifyOnDeath (NP_Dummy + 22)
  96.                 /* notify parent on death - default FALSE  */
  97.                 /* Not functional yet. */
  98. #define    NP_Synchronous    (NP_Dummy + 23)
  99.                 /* don't return until process finishes -   */
  100.                 /* default FALSE.               */
  101.                 /* Not functional yet. */
  102. #define    NP_ExitCode    (NP_Dummy + 24)
  103.                 /* code to be called on process exit       */
  104. #define    NP_ExitData    (NP_Dummy + 25)
  105.                 /* optional argument for NP_EndCode rtn -  */
  106.                 /* default NULL                   */
  107.  
  108.  
  109. /*****************************************************************************/
  110. /* tags for AllocDosObject */
  111.  
  112. #define ADO_Dummy    (TAG_USER + 2000)
  113. #define    ADO_FH_Mode    (ADO_Dummy + 1)
  114.                 /* for type DOS_FILEHANDLE only           */
  115.                 /* sets up FH for mode specified.
  116.                    This can make a big difference for buffered
  117.                    files.                   */
  118.     /* The following are for DOS_CLI */
  119.     /* If you do not specify these, dos will use it's preferred values */
  120.     /* which may change from release to release.  The BPTRs to these   */
  121.     /* will be set up correctly for you.  Everything will be zero,       */
  122.     /* except cli_FailLevel (10) and cli_Background (DOSTRUE).       */
  123.     /* NOTE: you may also use these 4 tags with CreateNewProc.       */
  124.  
  125. #define    ADO_DirLen    (ADO_Dummy + 2)
  126.                 /* size in bytes for current dir buffer    */
  127. #define    ADO_CommNameLen    (ADO_Dummy + 3)
  128.                 /* size in bytes for command name buffer   */
  129. #define    ADO_CommFileLen    (ADO_Dummy + 4)
  130.                 /* size in bytes for command file buffer   */
  131. #define    ADO_PromptLen    (ADO_Dummy + 5)
  132.                 /* size in bytes for the prompt buffer       */
  133.  
  134. /*****************************************************************************/
  135. /* tags for NewLoadSeg */
  136. /* no tags are defined yet for NewLoadSeg */
  137.  
  138. #endif /* DOS_DOSTAGS_H */
  139.